package com.leps.nq.bu.service;

import com.leps.nq.bu.entity.BuCust;
import com.baomidou.mybatisplus.extension.service.IService;
import com.leps.nq.bu.vo.CustQueryModel;
import com.leps.nq.bu.vo.CustVo;
import com.leps.nq.common.vo.PageVo;

import java.util.List;

/**
 * <p>
 * 客户表 服务类
 * </p>
 *
 * @author hex
 * @since 2022-05-22
 */
public interface IBuCustService extends IService<BuCust> {

    /**
     * 根据querymodel分页查询客户信息
     * @param custQueryModel
     * @return
     */
    PageVo<CustVo> pageByQueryModel(CustQueryModel custQueryModel);

    /**
     * 级联更新客户信息
     * @param cust
     * @return
     */
    boolean updateCascade(BuCust cust);

    List<BuCust> listForSelect();
}
